html/template.context.state (field)
122 uses
html/template (current package)
context.go#L21: state state
context.go#L41: return fmt.Sprintf("{%v %v %v %v %v %v %v %v}", c.state, c.delim, c.urlPart, c.jsCtx, c.jsBraceDepth, c.attr, c.element, err)
context.go#L46: return c.state == d.state &&
context.go#L60: if c.state == stateText {
context.go#L63: s := templateName + "$htmltemplate_" + c.state.String()
escape.go#L29: } else if c.state != stateText {
escape.go#L144: return context{state: stateDead}
escape.go#L150: return context{state: stateDead}
escape.go#L194: c.state == stateAttr && c.delim == delimSpaceOrTagEnd && ident == "html" {
escape.go#L196: state: stateError,
escape.go#L203: switch c.state {
escape.go#L212: switch c.state {
escape.go#L222: state: stateError,
escape.go#L259: c.state = stateAttrName
escape.go#L264: if isComment(c.state) {
escape.go#L267: panic("unexpected state " + c.state.String())
escape.go#L454: switch c.state {
escape.go#L457: c.state = stateAttrName
escape.go#L460: c.state, c.delim, c.attr = attrStartStates[c.attr], delimSpaceOrTagEnd, attrNone
escape.go#L463: c.state, c.attr = stateAttrName, attrNone
escape.go#L472: if a.state == stateError {
escape.go#L475: if b.state == stateError {
escape.go#L478: if a.state == stateDead {
escape.go#L481: if b.state == stateDead {
escape.go#L510: if e := join(c, d, node, nodeName); e.state != stateError {
escape.go#L516: state: stateError,
escape.go#L528: if c0.state != stateError {
escape.go#L532: if c0.state == stateError {
escape.go#L542: if c0.state == stateError {
escape.go#L553: if c0.state == stateError {
escape.go#L567: if c0.state == stateError {
escape.go#L575: if c0.state == stateError {
escape.go#L591: if c.state == stateDead {
escape.go#L653: state: stateError,
escape.go#L658: state: stateError,
escape.go#L688: if !ok && c1.state != stateError {
escape.go#L690: state: stateError,
escape.go#L702: if c1.state == stateError {
escape.go#L764: if c.state == stateText || c.state == stateRCDATA {
escape.go#L766: if c1.state != c.state {
escape.go#L781: } else if isComment(c.state) && c.delim == delimNone {
escape.go#L782: switch c.state {
escape.go#L801: if c.state != c1.state && isComment(c1.state) && c1.delim == delimNone {
escape.go#L804: if c1.state == stateHTMLCmt || c1.state == stateJSHTMLOpenCmt {
escape.go#L807: } else if c1.state == stateJSHTMLCloseCmt {
escape.go#L814: if isInScriptLiteral(c.state) && containsSpecialScriptTag(s[i:i1]) {
escape.go#L819: if i == i1 && c.state == c1.state {
escape.go#L825: if written != 0 && c.state != stateError {
escape.go#L826: if !isComment(c.state) || c.delim != delimNone {
escape.go#L845: return transitionFunc[c.state](c, s[:i])
escape.go#L864: state: stateError,
escape.go#L875: c1, i1 := transitionFunc[c.state](c, u)
escape.go#L884: if c.state == stateAttr && c.element == elementScript && c.attr == attrScriptType && !isJSType(string(s[:i])) {
escape.go#L894: return context{state: stateTag, element: element}, i
html.go#L188: st := c.state
html.go#L195: if c.state == stateText || c.state == stateRCDATA {
html.go#L198: if d.state != c.state {
html.go#L221: c, i = context{state: stateTag, element: c.element}, i1
html.go#L225: } else if c.state == stateText || c.state == stateRCDATA {
transition.go#L60: return context{state: stateHTMLCmt}, i + 4
transition.go#L76: return context{state: stateTag, element: e}, j
transition.go#L102: return context{state: stateText, element: elementNone}, i + 1
transition.go#L105: state: elementContentType[c.element],
transition.go#L111: return context{state: stateError, err: err}, len(s)
transition.go#L116: state: stateError,
transition.go#L144: return context{state: state, element: c.element, attr: attr}, j
transition.go#L151: return context{state: stateError, err: err}, len(s)
transition.go#L153: c.state = stateAfterName
transition.go#L166: c.state = stateTag
transition.go#L169: c.state = stateBeforeValue
transition.go#L198: c.state, c.delim = attrStartStates[c.attr], delim
transition.go#L231: if c.element == elementScript && (isInScriptLiteral(c.state) || isComment(c.state)) {
transition.go#L294: c.state, c.jsCtx = stateJSDqStr, jsCtxRegexp
transition.go#L296: c.state, c.jsCtx = stateJSSqStr, jsCtxRegexp
transition.go#L298: c.state, c.jsCtx = stateJSTmplLit, jsCtxRegexp
transition.go#L302: c.state, i = stateJSLineCmt, i+1
transition.go#L304: c.state, i = stateJSBlockCmt, i+1
transition.go#L306: c.state = stateJSRegexp
transition.go#L311: state: stateError,
transition.go#L324: c.state, i = stateJSHTMLOpenCmt, i+3
transition.go#L328: c.state, i = stateJSHTMLCloseCmt, i+2
transition.go#L333: c.state, i = stateJSLineCmt, i+1
transition.go#L355: c.state = stateJSTmplLit
transition.go#L374: state: stateError,
transition.go#L381: c.state = stateJS
transition.go#L386: c.state = stateJS
transition.go#L399: switch c.state {
transition.go#L417: state: stateError,
transition.go#L432: c.state, c.jsCtx = stateJS, jsCtxDivOp
transition.go#L438: c.state, c.jsCtx = stateJS, jsCtxDivOp
transition.go#L449: state: stateError,
transition.go#L465: switch c.state {
transition.go#L467: c.state = stateJS
transition.go#L469: c.state = stateCSS
transition.go#L471: panic(c.state.String())
transition.go#L480: switch c.state {
transition.go#L493: panic(c.state.String())
transition.go#L500: c.state = endState
transition.go#L552: c.state, j = stateCSSDqURL, j+1
transition.go#L554: c.state, j = stateCSSSqURL, j+1
transition.go#L556: c.state = stateCSSURL
transition.go#L564: c.state = stateCSSLineCmt
transition.go#L567: c.state = stateCSSBlockCmt
transition.go#L572: c.state = stateCSSDqStr
transition.go#L575: c.state = stateCSSSqStr
transition.go#L585: switch c.state {
transition.go#L595: panic(c.state.String())
transition.go#L609: state: stateError,
transition.go#L614: c.state = stateCSS
transition.go#L632: c.state = stateMetaContentURL
transition.go#L644: c.state = stateMetaContent